package com.wangchao.administrator.zenmechi.http;


import com.wangchao.administrator.zenmechi.bean.caipubean.CaipuItem;
import com.wangchao.administrator.zenmechi.bean.caipudetailbean.CaipuDetail;
import com.wangchao.administrator.zenmechi.bean.goodsdetail.GoodsDetail;
import com.wangchao.administrator.zenmechi.bean.categorybean.CategoryBean;
import com.wangchao.administrator.zenmechi.bean.merchantbean.MerchantBean;
import com.wangchao.administrator.zenmechi.bean.productbean.ProductBean;
import com.wangchao.administrator.zenmechi.bean.shopcategorybean.ShopCategoryBean;
import com.wangchao.administrator.zenmechi.bean.homebean.Mainbean;
import com.wangchao.administrator.zenmechi.bean.merchantbean.MerchantBean;
import com.wangchao.administrator.zenmechi.bean.productbean.ProductBean;
import com.wangchao.administrator.zenmechi.bean.shopcategorybean.ShopCategoryBean;
import com.wangchao.administrator.zenmechi.bean.special.SpecialBean;
import com.wangchao.administrator.zenmechi.bean.stepbean.StepBean;
import com.wangchao.administrator.zenmechi.config.UrlConfig;

import java.util.Map;

import retrofit2.http.GET;
import retrofit2.http.Path;
import retrofit2.http.QueryMap;
import rx.Observable;

/**
 *
 */

public interface RetrofitApiService {
//    添加接口示例
    //    添加接口示例
//    Observable<Recommend> getRecomend(@QueryMap()Map<String,String> params);
    @GET(UrlConfig.Path.CAIPU_ITEM)
    Observable<CaipuItem> getItems();

    @GET("fanfou-api/cookbook/list/{type}")
    Observable<CaipuDetail> getDetail(@Path("type") String type, @QueryMap Map<String,String> map);
    Observable<CaipuDetail> getDetail(@Path("type") String type, @QueryMap Map<String, String> map);

    @GET("fanfou-api/cookbook/detail/{type}")
    Observable<CaipuDetail> getStep(@Path("type") String type, @QueryMap Map<String,String> map);
//    @GET("{type}?")
    Observable<CaipuDetail> getStep(@Path("type") String type, @QueryMap Map<String, String> map);

    //    @GET("{type}?")
//    Observable<Mainbean> getMaindata(@Path("type") String type, @QueryMap Map<String,String> map);
    @GET("fanfou-api/home/main?market_id=6")
    Observable<Mainbean> getMaindata();

    @GET(UrlConfig.Path.CAIPU_STEP+"{type}")
    @GET(UrlConfig.Path.CAIPU_STEP + "{type}")
    Observable<StepBean> getStep(@Path("type") String type);

    @GET(UrlConfig.Path.CAIPU_SEARCH)
    Observable<CaipuDetail> getCaipuSearch(@QueryMap Map<String,String> map);
    Observable<CaipuDetail> getCaipuSearch(@QueryMap Map<String, String> map);

    @GET(UrlConfig.Path.PRODUCT_SEARCH)
    Observable<ProductBean> getProductSearch(@QueryMap Map<String,String> map);
    Observable<ProductBean> getProductSearch(@QueryMap Map<String, String> map);

    @GET(UrlConfig.Path.MERCHANT_SEARCH)
    Observable<MerchantBean> getMerchantSearch(@QueryMap Map<String,String> map);
<<<<<<< HEAD
    Observable<MerchantBean> getMerchantSearch(@QueryMap Map<String, String> map);
=======
    @GET(UrlConfig.Path.SPEC_LIST)
    Observable<SpecialBean> getSpecBean(@QueryMap Map<String,String> map);
    @GET(UrlConfig.Path.GOODS_DETAIL+"{type}")
    Observable<GoodsDetail> getGoodsDetail(@Path("type") String type,@QueryMap Map<String,String> map);
>>>>>>> fce50b48c47bae2058634ed8df17884a408c1140

    @GET(UrlConfig.Path.CATEGORY_PATH)
    Observable<ShopCategoryBean> getCategorySearch(@QueryMap Map<String,String> map);
    Observable<ShopCategoryBean> getCategorySearch(@QueryMap Map<String, String> map);

    @GET(UrlConfig.Path.CATE_LIST)
       @GET(UrlConfig.Path.CATE_LIST)
    Observable<CategoryBean> getCateList(@QueryMap Map<String,String> map);
    Observable<CategoryBean> getCateList(@QueryMap Map<String, String> map);

    @GET(UrlConfig.Path.SPEC_LIST)
    Observable<SpecialBean> getSpecBean(@QueryMap Map<String,String> map);
    Observable<SpecialBean> getSpecBean(@QueryMap Map<String, String> map);

    @GET(UrlConfig.Path.SPEC_LIST)
    Observable<SpecialBean> getSpecBean(@QueryMap Map<String,String> map);
}
